import request from '@/utils/request'

export function user_index(params) {
  return request({
    url: '/user/index',
    method: 'get',
    params
  })
}

export function user_add(data) {
  return request({
    url: '/user/add',
    method: 'post',
    data:data
  })
}

export function user_edit(data) {
  return request({
    url: '/user/edit',
    method: 'post',
    data:data
  })
}

export function user_delete(data) {
  return request({
    url: '/user/delete',
    method: 'post',
    data:data
  })
}
